package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface OrderDetailMapper {
    void insertList(ArrayList<OrderDetail> orderDetails);

    /**
     * 再来一单
     * @param id
     * @return
     */
    @Select("select * from order_detail where order_id = #{id}")
    OrderDetail getByOrderId(Long id);
}
